namespace Hrm.EntityFramework.MigrationsNote
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Initial : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Logs",
                c => new
                    {
                        Id = c.Int(nullable: false, identity: true),
                        Origin = c.String(maxLength: 50),
                        Level = c.Int(nullable: false),
                        Message = c.String(),
                        StackTrade = c.String(maxLength: 2000),
                        IsEnable = c.Boolean(nullable: false),
                        CreateDatetime = c.DateTime(),
                        CreateUserCode = c.String(maxLength: 50),
                        UpdateDatetime = c.DateTime(),
                        UpdateUserCode = c.String(maxLength: 50),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.Logs");
        }
    }
}
